package com.iot.core.data.entity;

import com.iot.core.data.BaseEntity;
import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Table;
import io.swagger.v3.oas.annotations.media.Schema;

import jakarta.validation.constraints.Max;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;


@Data
@EqualsAndHashCode(callSuper=false)
@Schema(name = "用户表",description = "")
@Table(value ="htuser")
public class HtUser extends BaseEntity {

    @Schema(name = "账号",description = "")
    @Size(min =0,max = 50,message = "长度范围0-50")
    private  String  ename ="";

    @Schema(name = "姓名",description = "")
    @NotBlank(message = "姓名不能为空")
    @Size(min =0,max = 50,message = "长度范围0-50")
    private  String  name ="";



    @Schema(name = "密码",description = "")
    @Size(min =0,max = 50,message = "长度范围0-50")
    private  String  pwd ="";

    @Schema(name = "密码",description = "")
    @Size(min =0,max = 50,message = "长度范围0-50")
    private  String  czpwd ="";

    @Schema(name = "手机号",description = "")
    @Size(min =0,max = 50,message = "长度范围0-50")
    private  String  mobile ="";

    @Schema(name = "其他电话",description = "")
    @Size(min =0,max = 50,message = "长度范围0-50")
    private  String  phone ="";


    @Schema(name = "性别",description = "男、女")
    @Size(min =0,max = 10,message = "长度范围0-100")
    private  String  sex ="";




    @Schema(name = "照片",description = "")
    private  String  url ="";

    @Schema(name = "职务",description = "")
    @Size(min =0,max = 50,message = "长度范围0-50")
    private  String  zw ="";

    @Schema(name = "出生日期",description = "")
    private  Date  birthday ;

    @Schema(name = "住址",description = "")
    @Size(min =0,max = 100,message = "长度范围0-100")
    private  String  address ="";

    @Schema(name = "邮箱",description = "")
    @Size(min =0,max = 100,message = "长度范围0-100")
    private  String  email ="";

    @Schema(name = "身份证号",description = "")
    @Size(min =0,max = 50,message = "长度范围0-50")
    private  String  idCode ="";

    @Schema(name = "备注",description = "")
    private  String  memo ="";

    @Schema(name = "区域编号",description = "")
    private  Long  htareaId =0L;




    @Schema(name = "创建日期",description = "")
    private  Date  crtDt ;

    @Schema(name = "创建人编号",description = "")
    private  Long  crtUid =0L;

    @Schema(name = "机构编号",description = "")
    private  Long  crtDid =0L;

    @Schema(name = "修改日期",description = "")
    private  Date  edtDt ;

    @Schema(name = "修改人编号",description = "")
    private  Long  edtUid =0L;

    @Schema(name = "Gid",description = "")
    private  String  gid ="";

    @Schema(name = "删除标志",description = "")
    @Column(isLogicDelete = true)
    private  boolean  deleted  ;





}
